package com.useeinfo.oa.modules.repair.enums;

/**
 * @Auther: xudong.sun
 * @Date: 2018/12/19 16:47
 * @Description:
 */
public enum AssignTypeEnum {

    USER("USER","指派人"),POSITION("POSITION","指派岗位");

    private String code;

    private String name;

    public String getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    AssignTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static AssignTypeEnum getEnum(String code){
        if(code.equals("USER")){
            return USER;
        }else if(code.equals("POSITION")) {
            return POSITION;
        }else{
            return null;
        }
    }
}
